package com.shu.socket.BIO;

import java.io.IOException;
import java.io.PrintWriter;
import java.net.Socket;

/**
 * @author ssm
 * @version V1.0
 * @description:
 * @date 2019/2/20 19:40
 */

public class SocketClient {

  public static void main(String[] args) throws IOException {
    Socket socket = new Socket("localhost", 8888);
    PrintWriter writer = new PrintWriter(socket.getOutputStream(), true);
    writer.println("hello css");
    writer.close();
    socket.close();
  }
}
